<?php
/**
 * Created by PhpStorm.
 * Author: Shadow
 * Date: 2022/6/1
 * Time: 9:16 上午
 * description: Base.php
 */

namespace app\home\controller;

use think\facade\View;

/**
 * 基础控制器
 * Class Base
 * @package app\home\controller
 */
class Base
{
    public function __construct()
    {
        $category = \app\common\model\Category::field('id,cate_name,pid_path_name,pid')->select()->toArray();
        $category = recursion_data($category);
        View::assign('category',$category);
    }

}